<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="description" content="">
		<meta name="author" content="">
		<title>Zap</title>
		
		<link rel="stylesheet" href="<?php echo base_url('assets/front/css/bootstrap.css');  ?>" media="screen">
		<link href="<?php echo base_url('assets/front/css/style.css');  ?>" rel="stylesheet" type="text/css" />
		<link href="<?php echo base_url('assets/front/css/jquery-ui-1.10.0.custom.css');  ?>" rel="stylesheet" type="text/css" />
		
		<?php echo $this->template->stylesheet; ?>
		<script src="<?php echo base_url('assets/front/js/jquery-1.10.2.js');  ?>"></script>
		<script src="<?php echo base_url('assets/front/js/jquery-ui-1.9.2.custom.min.js');  ?>"></script>
		
		<?php echo $this->template->javascript; ?>
		
		<script type="text/javascript" src="<?php echo base_url('assets/front/js/bootstrap.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url('assets/front/js/placeholder.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url('assets/front/js/jquery.validate.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url('assets/front/js/form_validation.js'); ?>"></script>
		
		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!--[if lt IE 9]>
		  <script src="<?php echo base_url('assets/front/js/html5shiv.js');?>"></script>
		  <script src="<?php echo base_url('assets/front/js/respond.min.js')?>"></script>
		<![endif]-->
		<?php echo $this->template->script; ?>
	</head>
	<body>
		<?php 
			header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1.
			header('Pragma: no-cache'); // HTTP 1.0.
			header('Expires: 0'); // Proxies.
			$member = $this->session->userdata('user');
			$settings=$this->general_model->select_val("setting","*","id = 1");
			$firstname=$member['firstname'];
			$lastname=$member['lastname'];
			$id=$member['userid'];
			$groupid=$member['groupid'];
			$is_login=$member['logged_in'];
			//$is_login=0;
			$page=page();
			
		?>
		<div class="inner_page_container">
			<div class="container">
				<div class="header">
					<a href="<?php echo base_url();?>"><img src="<?php echo base_url('assets/uploads/images'); ?>/<?=$settings['site_logo']?>" class="logo_img"></a>
					<ul class="nav nav-pills pull-right navul">
					<?php if(!$is_login){?>
					  <li><a href="<?php echo base_url('users/login');?>" class="link login_bg">Login</a></li>
					  <li><a href="<?php echo base_url('users/signup');?>" class="link signup_bg">Signup</a></li>
					<?}else{?>
						<li><a href="<?php echo base_url('users/logout');?>" class="link signup_bg">Logout</a></li>
					<?}?>
					</ul>
				</div>
				<?php if($this->session->flashdata('message')){?>
				<div class="alert alert-success alert-dismissable flashmsg">
					<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
					<?php echo $this->session->flashdata('message'); ?>
				</div>
				<?}?>
				</div>
			
			<?php echo $this->template->content; ?>  
			
			<div class="container-fluid stickyfooter">
				<div class="footer img-responsive">
					<ul class="nav nav-pills footerul">
						<?php echo $this->template->widget("cms_bmenu_widget", array("menu_name"=>"footer_menu","liaclass"=>"footerli")); ?>
					   
					   <li class="footerli"><a class="footernav">&copy; 2014 Zap-out.com</a></li>                          
					</ul>
				</div>  
			</div>
		</div>
	</body>
</html>
